package com.example.com.daervideo.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.example.com.daervideo.BR;
import com.example.com.daervideo.R;
import com.example.com.daervideo.databinding.FragmentRenzhengBinding;

import me.goldze.mvvmhabit.base.BaseFragment;
import me.goldze.mvvmhabit.base.BaseViewModel;

/**
 * Created by i7-1 on 2018/12/10.
 */

public class RenZhengFragment extends BaseFragment<FragmentRenzhengBinding,BaseViewModel> {

    private int index;

    public static Fragment newInstans(int i) {
        RenZhengFragment renZhengFragment = new RenZhengFragment();
        Bundle bundle = new Bundle();
        bundle.putInt("index", i);
        renZhengFragment.setArguments(bundle);
        return renZhengFragment;
    }

    @Override
    public int initContentView() {
        return R.layout.fragment_renzheng;
    }

    @Override
    public int initVariableId() {
        return  BR.viewModel;
    }

    @Override
    public BaseViewModel initViewModel() {
        return new BaseViewModel();
    }

    @Override
    public void initParam() {
        super.initParam();
        Bundle arguments = getArguments();
        index = arguments.getInt("index");
    }

    @Override
    public void initData() {
        super.initData();
        //binding.title.setText(index + "");
    }
}
